<?php
	
	function check_version(){
		$version = "0.2.0";
		return $version;
	}
	
	function return_array($getpin){
		$check_pass = Server::check_pin_serv($getpin);
		if ($check_pass != false){
			print "<version>".check_version()."</version><filesearch>".Folder::array_folder()."</filesearch>";
			exit();
		}
		else{
			print "Bad password";
			exit();
		}
	}
		
	function add_log($string,$server="Null",$user="Null"){
		mysql_query("INSERT INTO ".DATABASE_TABLE_LOG."(action,server,user,date) 
					VALUES('".$string."','".mysql_escape_string($server)."' ,'".mysql_escape_string($user)."','".time()."')");
	}
	
	

?>